package org.csu.newpetstoreback.service;

import org.csu.newpetstoreback.common.CommonResponse;
import org.csu.newpetstoreback.vo.OrderVO;

import java.util.List;

public interface OrderService {
    //获取所有订单
    CommonResponse<List<OrderVO>> getOrders();

    //添加一个订单
    CommonResponse<OrderVO> addOrder(OrderVO orderVO);

    //获取指定订单信息
    CommonResponse<OrderVO> getOrderById(int orderId);

    //更新指定订单信息
    CommonResponse<OrderVO> setOrderById(int orderId, OrderVO orderVO);

    //删除指定订单
    CommonResponse<OrderVO> deleteOrderById(int orderId);

    //退货
    CommonResponse<OrderVO> cancelOrderById(int orderId);

    //收货
    CommonResponse<OrderVO> receiveOrderById(int orderId);

    //查看当前订单数
    int getOrderNum();
}
